package com.zcb.agrimarket.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "agrimarket.jwt")
@Data
public class JwtProperties {

    /**
     * 卖家后台管理端用户生成jwt令牌相关配置
     */
    private String adminSecretKey;//JWT密钥
    private long adminTtl;//JWT过期时间
    private String adminTokenName;//JWT名称

    /**
     * 客户端JWT令牌相关配置
     */
    private String userSecretKey;//JWT密钥
    private long userTtl;//JWT过期时间
    private String userTokenName;//JWT名称
}
